package com.freesky.framework.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "user.password")
public class PasswordProperties {
    private int minLength = 8;
    private int maxLength = 20;
    private PasswordPattern pattern = new PasswordPattern();

    public static class PasswordPattern {
        private boolean upperCase = true;
        private boolean lowerCase = true;
        private boolean digit = true;
        private boolean special = true;
    }
} 